<template>
    <div class="container">
        <BackBtn />
        <Hot :jobList="jobList"/>
    </div>
</template>

<script>
import Hot from "@/components/Hot";
import BackBtn from "@/components/BackBtn";
import axios from "@/api/axios.js";
export default {
    components: {
        Hot,
        BackBtn,
    },
    data() {
        return {
            jobList:[],
        };
    },
    methods: {
        getjobList() {
            axios.get("/hkrc/unit/getJobList").then((res) => {
                console.log(res.data);
                if (res.data.success) {
                    this.jobList = res.data.jobList;
                } else {
                    Toast.fail("出错了");
                }
            });
        },
    },
    created() {
        // 隐藏删除按钮
        this.$store.state.isDel = false
        // 显示搜索结果
        this.$store.state.isSearchDetail = true;
        // 隐藏搜索标题
        this.$store.state.isHot = false;
        this.getjobList()
    },
};
</script>

<style lang="less" scoped>
.container {
    min-height: 100vh;
    background: #f5f6f8;
    padding-bottom: 25px;
}
</style>
